/*
 * @Author: 张笑天
 * @Date: 2018-03-07 17:12:54
 * @Last Modified by: lyuan2018
 * @Last Modified time: 2019-12-18 09:49:05
 */
@prefixCls: wea-email-view;

.@{prefixCls} {
  height: 100%;
  &-null {
    background-color: #f6f6f6;
  }
  .@{prefixCls}-ops {
    height: 47px;
    line-height: 40px;
    font-size: 16px;
    border-bottom: 1px solid #eaeaea;
    i {
      cursor: pointer;
      color: #3e3a39;
      vertical-align: middle;
    }
    &-right {
      float: right;
      i {
        margin-right: 20px;
      }
    }
    .wea-email-dropdown-btn {
      margin-left: 30px;
      .icon-coms-organization-down {
        margin-left: 4px;
        color: #a3a3a3;
        font-size: 9px;
      }
      &:hover {
        i {
          color: #67aff7;
        }
      }
    }
  }
  .@{prefixCls}-ops.emailScroll {
    z-index: 1;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 8px 25px 0px;
  }
  .@{prefixCls}-scroll {
    height: 100%;
    padding-bottom: 48px;
    position: relative;
    .@{prefixCls}-main {
      padding: 10px;
      &>div {
        min-height: 100px;
        &:first-child {
          border-bottom: 1px solid #e2e2e2;
        }
        &:last-child {
          min-height: 0;
        }
      }
      .@{prefixCls}-base {
        &>div {
          margin-bottom: 10px;
        }
        &-send {
          line-height: 40px;
          color: #484a4d;
          a.isExtraEmail {
            color: #4d7ad8;
            >span {
              color: #484a4d;
            }
            &:hover,
            &:visited {
              color: #00a9ff;
              text-decoration: underline;
              >span {
                color: #00a9ff;
              }
            }
          }
          &-ops {
            float: right;
            margin-right: 3px;
            i.icon-coms02-Main-account-number, i.icon-coms02-Secondary-account-number {
              font-size: 17px;
              cursor: default;
              position: relative;
              top: 2px;
            }
            i {
              font-size: 14px;
              margin-right: 14px;
              color: #444;
              cursor: pointer;
              &.icon-email-Agency,
              &.icon-email-Agency-o {
                position: relative;
                top: 2px;
              }
              &.icon-email-Agency {
                color: #67aff7;
              }
              &.icon-email-Collection,
              &.icon-email-Collection-o {
                color: #f5a623;
              }
            }
            &>span {
              cursor: pointer;
              .icon-coms-up,
              .icon-coms-down {
                color: #b2b2b2;
                margin-left: 6px;
                font-size: 8px;
                vertical-align: middle;
              }
            }
          }
        }
        &>.@{prefixCls}-base-to {
          margin-bottom: 5px;
          padding-left: 64px;
          line-height: 20px;
          &>span:first-child {
            float: left;
            margin-left: -64px;
            color: #999;
            min-width: 48px;
          }
        }
        &-title {
          margin-top: 15px;
          line-height: 22px;
          &-showname {
            &>span:first-child {
              vertical-align: middle;
              font-size: 16px;
              color: #484a4d;
            }
          }
          &-unreadedcount {
            color: #999;
            cursor: pointer;
            text-decoration: underline;
            margin: 0 14px;
          }
          .ant-tag {
            max-width: calc(100% - 18px);
            position: relative;
            transition: none;
            &:hover {
              max-width: 100%;
              padding-right: 28px;
            }
            &-text {
              width: 100%;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              display: inline-block;
            }
            .anticon-cross {
              position: absolute;
              top: 50%;
              transform:translate(0%,-40%);
              right: 8px;
            }
          }
          &-showsecrecy {
            text-align: right;
            padding-right: 17px;
            color: #868686;
          }
        }
        &-files {
          &>a {
            color: #4d7ad8;
            cursor: pointer;
            margin-left: 12px;
          }
        }
      }
      .@{prefixCls}-content {
        padding: 10px 5px;
        iframe {
          border: none;
        }
        .wea-alert-page {
          min-height: 220px;
          background-color: #fff;
        }
      }
      .@{prefixCls}-files {
        min-height: 0;
        &-title {
          border-bottom: 1px solid #e2e2e2;
          line-height: 18px;
          padding: 10px;
          color: #333;
          .icon-email-Enclosure {
            margin-right: 10px;
            color: #040000;
          }
          &-batch-download {
            float: right;
            color: #4d7ad8;
            &>span:first-child {
              cursor: pointer;
              margin-right: 8px;
              .icon-coms-download {
                margin-right: 8px;
                font-size: 16px;
                vertical-align: text-bottom;
              }
            }
            &>span:last-child {
              color: #999;
            }
          }
        }
        &-list {
          .clearfloat {
            clear: both;
            content: ".";
            display: block;
            font-size: 0;
            height: 0;
            visibility: hidden;
            _zoom: 1;
          }
          &:after{
            .clearfloat;
          }
          &-item {
            width: 288px;
            height: 68px;
            padding: 6px 6px 6px 72px;
            margin: 10px 32px 0 0;
            float: left;
            &:after{
              .clearfloat;
            }
            &>div {
              float: left;
            }
            &-img {
              width: 56px;
              height: 56px;
              border-radius: 4px;
              float: left;
              margin-left: -66px;
              position: relative;
              &>i {
                font-size: 56px;
                line-height: 1;
                cursor: pointer;
              }
              &-mask {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                line-height: 60px;
                text-align: center;
                background-color: #000;
                opacity: 0;
                border-radius: 4px;
                cursor: pointer;
              }
              &:hover {
                .@{prefixCls}-files-list-item-img-mask {
                  opacity: .5;
                  .icon-email-enlarge {
                    color: #fff;
                    font-size: 16px;
                  }
                }
              }
            }
            &-content {
              width: 100%;
              margin-top: 10px;
              &>p {
				cursor: pointer;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                color: #333;
                &:last-child {
                  color: #888;
                  margin-top: 6px;
                }
              }
            }
            &-ops {
              margin-right: -82px;
              line-height: 56px;
              display: none;
              &>i {
                color: #666;
                cursor: pointer;
                font-size: 16px;
                margin-left: 15px;
              }
            }
            &:hover {
              padding-right: 82px;
              background-color: #F3F9FF;
              .@{prefixCls}-files-list-item-ops {
                display: block;
              }
            }
          }
        }
      }
    }
    .@{prefixCls}-recall {
      position: absolute;
      width: 100%;
      color: #fff;
      text-align: center;
      line-height: 25px;
      background-color: #ababab;
      opacity: .8;
      top: 0;
    }
    .ant-table-content .ant-table-header .ant-table-column-sorterN.text-elli{
      display: inline-block;
      max-width: 134px;
    }
  }
  &-quick-reply {
    margin-top: 20px;
    &-btn {
      height: 30px;
      line-height: 26px;
      padding-left: 10px;
      border: 1px solid #999;
      color: #a2a8aa;
      cursor: pointer;
      i {
        font-size: 14px;
        margin-right: 10px;
        vertical-align: middle;
      }
      &:hover {
        border-color: #57c5f7;
      }
    }
    &-tofull {
      float: right;
      color: #999;
      text-decoration: underline;
      cursor: pointer;
      margin-top: 6px;
    }
  }
}